import Vue from "vue";
import VueRouter from "vue-router";

import Index from "@/views/index/index";
import Home from "@/views/home/index";

import Login from "@/views/login/index";
// import Register from '@/views/register/index'


Vue.use(VueRouter);

const routes = [
    // {
    //     path: "/",
    //     component: Login,
    //     name: "Login",
    // },
    // {
    //     path: '/register',
    //     component: Register,
    //     name: 'register',
    //   },
    {
        path: "/",
        name: "Index",
        component: Home,
        redirect: "/index",
        children: [
            {
                path: "/index",
                component: Index,
                name: "index",
            },
        ],
    },
];

const router = new VueRouter({
    routes,
});

export default router;
